/*
 * Copyright 2019 Red Hat, Inc. and/or its affiliates.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

[data-i18n-prefix="DNDListComponentView."] {

  height: 100%;

  .kie-dnd-drag-area {
    width: 100%;
    height: 100%;
    position: relative;
    background: #F7F7F7;
    box-shadow: 0 0 0 1px inset #e2e4e3;
    overflow: hidden;

    .kie-dnd-draggable {
      width: 100%;
      right: 0;
      height: 70px;
      position: absolute;
      z-index: 1;
      -webkit-touch-callout: none;
      -webkit-user-select: none;
      -khtml-user-select: none;
      -moz-user-select: -moz-none;
      -ms-user-select: none;
      user-select: none;
      margin: 0;
      padding: 0;
      background: #FFF;

      &.kie-level-highlight:after {
        content: "";
        background: #0270b1;
        position: absolute;
        top: -1px;
        left: 0;
        width: 4px;
        height: 70px;
      }

      .kie-level-background-line {
        background: #0270b1;
        position: absolute;
        top: -1px;
        left: 0;
        width: 4px;
      }

      &.kie-dnd-current-dragging {
        z-index: 9;
        box-shadow: rgba(0, 0, 0, 0.25) 3px 3px 3px;
      }

      &.kie-dnd-hover {
        opacity: .75;
        background-color: #dce7ef;
      }

      &:hover .kie-dnd-grip,
      &.kie-dnd-current-dragging .kie-dnd-grip {
        display: block;
      }

      .kie-dnd-grip {
        display: none;
        position: absolute;
        font-size: 18px;
        height: 100%;
        width: 30px;
        cursor: grab;
        z-index: 1;
        color: #AAA;
        left: 0;

        .fa.fa-ellipsis-v {
          top: ~"calc(50% - 8px)";
          pointer-events: none;
          position: absolute;
          left: 11px;
        }

        .fa.fa-ellipsis-v + .fa.fa-ellipsis-v {
          left: 17px;
        }

        &:active {
          cursor: grabbing;
        }
      }
    }
  }
}
